| Conditions | 1 | 
| Paths | 2 | 
| Total Lines | 26 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | module.exports = function (gulp, plugins, config, env) { | 
            ||
| 2 |   return function html() { | 
            ||
| 3 | return gulp.src(env.production() ? config.build + '/*.html' : 'html/*.html')  | 
            ||
| 4 |       .pipe(plugins.inject(gulp.src(['config.json']), { | 
            ||
| 5 | starttag: '<!-- inject:config -->',  | 
            ||
| 6 |         transform: function (filePath, file) { | 
            ||
| 7 | return '<script>var jsonData =' +  | 
            ||
| 8 |             file.contents.toString('utf8') | 
            ||
| 9 |               .replace('<!-- inject:cache-breaker -->', | 
            ||
| 10 | Math.random().toString(12).substring(7)) +  | 
            ||
| 11 | ';</script>'  | 
            ||
| 12 | ;  | 
            ||
| 13 | }  | 
            ||
| 14 | }))  | 
            ||
| 15 |       .pipe(env.production(plugins.kyhInlineSource({ compress: false }))) | 
            ||
| 16 |       .pipe(plugins.cacheBust({ | 
            ||
| 17 | type: 'timestamp'  | 
            ||
| 18 | }))  | 
            ||
| 19 |       .pipe(plugins.htmlmin({ | 
            ||
| 20 | removeComments: true,  | 
            ||
| 21 | collapseWhitespace: true,  | 
            ||
| 22 | minifyJS: true  | 
            ||
| 23 | }))  | 
            ||
| 24 | .pipe(gulp.dest(config.build));  | 
            ||
| 25 | };  | 
            ||
| 26 | };  | 
            ||
| 27 |